package tenthwork.one;

/**
 * @author ：chenzikang
 * @date ： 2020/4/21
 */

public class Student {

    //学号
    private String id;

    //姓名
    private String name;

    //年龄
    private int age;

    //课程
    private double highMathScore;

    private double dataObjectScore;

    private double englishScore;

    private double marxismScore;

    private double collegePhysics;

    private double totalScore;

    public Student() {
    }

    public Student(String id, String name, int age, double highMathScore, double dataObjectScore, double englishScore, double collegePhysics,double marxismScore ) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.highMathScore = highMathScore;
        this.dataObjectScore = dataObjectScore;
        this.englishScore = englishScore;
        this.marxismScore = marxismScore;
        this.collegePhysics = collegePhysics;
    }

    @Override
    public String toString() {
        return "学生{" +
                "学号='" + id + '\'' +
                ", 姓名='" + name + '\'' +
                ", 年龄=" + age +
                ", 高数成绩=" + highMathScore +
                ", 数据结构成绩=" + dataObjectScore +
                ", 英语成绩=" + englishScore +
                ", 大物成绩=" + collegePhysics +
                ", 马哲成绩" + marxismScore +
                ", 平均成绩" + totalScore +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHighMathScore() {
        return highMathScore;
    }

    public void setHighMathScore(double highMathScore) {
        this.highMathScore = highMathScore;
    }

    public double getDataObjectScore() {
        return dataObjectScore;
    }

    public void setDataObjectScore(double dataObjectScore) {
        this.dataObjectScore = dataObjectScore;
    }

    public double getEnglishScore() {
        return englishScore;
    }

    public void setEnglishScore(double englishScore) {
        this.englishScore = englishScore;
    }

    public double getCollegePhysics() {
        return collegePhysics;
    }

    public void setCollegePhysics(double collegePhysics) {
        this.collegePhysics = collegePhysics;
    }

    public double getMarxismScore() {
        return marxismScore;
    }

    public void setMarxismScore(double marxismScore) {
        this.marxismScore = marxismScore;
    }

    public double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(double totalScore) {
        this.totalScore = totalScore;
    }
}





